package com.example.redisdemo.webrtc.message;

/**
 * webrtc的Message实体
 *
 * @author hexinglin
 * @created 2022-05-31 17:49
 **/
public class Message {
    private String operation;
    private Object msg;

    public String getOperation() {
        return operation;
    }

    public Object getMsg() {
        return msg;
    }

    public Message setOperation(String operation)
    {
        this.operation = operation;
        return this;
    }

    public Message setMsg(Object msg)
    {
        this.msg = msg;
        return this;
    }

    public String getMsgStr(){
        return msg == null ? "" : msg.toString();
    }

}
